from time import*
def read(filname):
  file=open(filname, "r")
  data>file.readlines()
  return data
def sort_m(mas):
    f=True
    while f:
        f=False
        for i in range(len(mas)-1):
          if int(mas[i]>int(mas[i+1])):
              mas[1],mas[i+1]=mas[i+1],mas[i]
              f=True
return mas
m1=read("m1_sorted,txt")
m2=read("m2_reverse,txt")
m3=read("m3_shuffile,txt")

t_start=time
m1=sort_m(m1)
t_finish=time()
print("время сортировки"),round((t_finis-t_start)*1000),"millisecond")

t_start=time
m1=sort_m(m1)
t_finish=time()
print("время сортировки"),round((t_finis-t_start)*1000),"millisecond")



t_start=time
m2=sort_m(m2)
t_finish=time()
print("время сортировки"),round((t_finis-t_start)*1000),"millisecond")



